package com.cms.work.entity.enums;

public interface CommonEnum {
	
	public enum role {
		
		ADMIN(1);//超级管理员组
		
		private int value;
		
		private role(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}
		
	}

	public enum result {
		SUCCESS(1, "成功"),
		FAIL(2, "失败"),
		ERROR(3, "未知错误");
		
		private int value;
		private String label;
		
		private result(int value, String label) {
			this.value = value;
			this.label = label;
		}
		public int getValue() {
			return value;
		}
		public void setValue(int value) {
			this.value = value;
		}
		public String getLabel() {
			return label;
		}
		public void setLabel(String label) {
			this.label = label;
		}
		
	}
	
	/**
	 * <p>Title: UserStatusEnum</p>
	 * <p>Description: 用户状态</p>
	 * <p>Email: yuyue_qty@163.com</p>
	 * @author 晴天雨
	 * @date 2016年11月22日下午11:38:01
	 * @version 1.0
	 */
	public enum UserStatusEnum {
	    enabled(1), disable(2);
	    
	    public int status;

        private UserStatusEnum(int status) {
            this.status = status;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
	}
	
	/**
	 * <p>Title: RoleStatusEnum</p>
	 * <p>Description: 角色状态</p>
	 * <p>Email: yuyue_qty@163.com</p>
	 * @author 晴天雨
	 * @date 2016年11月23日下午15:38:01
	 * @version 1.0
	 */
	public enum RoleStatusEnum {
	    enabled(1), disable(2);
	    
	    public int status;

        private RoleStatusEnum(int status) {
            this.status = status;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
	}
	
	/**
	 * <p>Title: ResourceStatusEnum</p>
	 * <p>Description: 资源状态</p>
	 * <p>Email: yuyue_qty@163.com</p>
	 * @author 晴天雨
	 * @date 2016年11月23日下午11:38:01
	 * @version 1.0
	 */
	public enum ResourceStatusEnum {
	    enabled(1), disable(2);
	    
	    public int status;

        private ResourceStatusEnum(int status) {
            this.status = status;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
	}
	
	/**
	 * <p>Title: ResourceTypeEnum</p>
	 * <p>Description: 资源类型</p>
	 * <p>Email: yuyue_qty@163.com</p>
	 * @author 晴天雨
	 * @date 2016年11月23日下午11:38:01
	 * @version 1.0
	 */
	public enum ResourceTypeEnum {
		menu(1), method(2);
	    
	    public int type;

		private ResourceTypeEnum(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}
	}
}
